<?php
	$id1=$_POST['id'];
	$id2=$_POST['transfer'];

	mysql_query("update jaminan_ritl set id_ruang_perawatan = $id2 where id_ruang_perawatan = $id1");
	mysql_query("update perawatan set id_ruang = $id2 where id_ruang = $id1");
	
	$sql="delete from ruang where id_ruang=$id1";
	$qry=mysql_query($sql);

	$url_sukses="utama.php?module=mod_ruang";
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>